#include "dstring.h"
#include <stdio.h>

int main(){
	dstring s,s1,s2;
	s.ch = NULL;
	s1.ch = NULL;
	s2.ch = NULL;
	dstrassign(&s, "you are a man!1");
	dstrassign(&s1, "you are a man!");
/*
	printf("cmp:%d\n",dstrcmp(s,s1));
	dstrcat(&s2, s, s1);
	printf("cat:");
	dstrshow(s2);
	
	subdstr(&s2, s1, 4,8);
	printf("\nsub:");
	dstrshow(s2);
	printf("\nshow:");
	dstrshow(s);
	
*/
	dstrassign(&s2, "are");
	printf("\nstrpos:%d\n", dstrpos(s, s2, 3));
	
}
